<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的待办事项</title>
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <h1>我的待办事项</h1>

        <div class="card add-todo-card">
            <input type="text" id="newTodoTitle" placeholder="新的待办事项标题" aria-label="新的待办事项标题">
            <textarea id="newTodoDescription" placeholder="描述 (可选)" aria-label="待办事项描述"></textarea>
            <button id="addTodoButton" class="btn primary-btn">添加待办</button>
        </div>

        <div id="todoList" class="todo-list">
            <div class="empty-state" id="emptyState">
                <span class="material-icons">task_alt</span>
                <p>暂时没有待办事项，快来添加一个吧！</p>
            </div>
        </div>
    </div>

    <div id="editModal" class="modal">
        <div class="modal-content">
            <span class="close-button">&times;</span>
            <h2>编辑待办事项</h2>
            <input type="text" id="editTodoTitle" placeholder="标题">
            <textarea id="editTodoDescription" placeholder="描述"></textarea>
            <button id="saveEditButton" class="btn primary-btn">保存</button>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>